import request from '@/utils/request'

// 获取角色列表
export const getRolueList = (params) => request({
  url: '/sys/role',
  params
})

// 新增角色
export const addRolues = (data) => request({
  url: '/sys/role',
  method: 'POST',
  data
})

//  根据id获取角色信息
export const getRoulesInfo = (id) => request({
  url: `/sys/role/${id}`
})
//  更新角色信息
export const updateRoulesInfo = (data) => request({
  url: `/sys/role/${data.id}`,
  method: 'PUT',
  data
})
//  根据id删除角色信息
export const delRoules = (id) => request({
  url: `/sys/role/${id}`,
  method: 'DELETE'
})
